set(APP_NAME viewer)

project(${APP_NAME})

set(${APP_NAME}_SOURCES
	${${APP_NAME}_PLATFORM_SOURCES}
	cat-app.cpp
	cat-client.cpp
	cat-main.cpp
	catimgui.cpp
	imgui_impl_glfw.cpp
	imgui_impl_opengl3.cpp
	imgui/imgui.cpp
	imgui/imgui_demo.cpp
	imgui/imgui_draw.cpp
	imgui/imgui_widgets.cpp
)
set(${APP_NAME}_HEADERS
	${${APP_NAME}_PLATFORM_HEADERS}
	cat-app.hpp
	cat-client.hpp
	catimgui.h
	imgui_impl_glfw.h
	imgui_impl_opengl3.h
	portable-file-dialogs.h
	imgui/imconfig.h
	imgui/imgui.h
	imgui/imgui_internal.h
	imgui/imstb_rectpack.h
	imgui/imstb_textedit.h
	imgui/imstb_truetype.h
)

add_executable (${APP_NAME} 
	${${APP_NAME}_SOURCES} 
	${${APP_NAME}_HEADERS}
)
target_link_libraries(${APP_NAME}
	libcat
	liblive2d
)

set_target_properties(${APP_NAME} PROPERTIES FOLDER "plugins/${APP_NAME}")